* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

/* general styling */
html,
body {
    height: 100%;
    margin: 0;
}

body {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #4fa1ff;
    transition: background-color 3s;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-family: -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen-Sans,
        Ubuntu,
        Cantarell,
        "Helvetica Neue",
        sans-serif;
}

#main {
    color: #fff;
    padding: 50px;
    height: 100%;
    width: 100%;
    z-index: 1;
    position: relative;
}

#container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#title,
#action,
#hitokoto,
#full-screen-button {
    font-weight: normal;
    font-size: 20px;
    position: absolute;
}

#title {
    left: 0;
    top: 0;
    opacity: 0.5;
}

#link,
#hitokoto {
    display: block;
    text-align: right;
}

#link,
#link:active,
#link:visited,
#hitokoto a,
#hitokoto a:active,
#hitokoto a:visited {
    color: #fff;
    text-decoration: none;
    opacity: 0.4;
}

#action {
    left: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
}

#action:hover {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.4);
}

#action:active {
    background-color: rgba(255, 255, 255, 0.3);
}

#hitokoto {
    right: 0;
    bottom: 0;
    font-size: medium;
}

#full-screen-button {
    top: 0;
    right: 0;
    height: calc(1em + 10px);
    width: calc(1em + 10px);
    padding: 5px;
}

#full-screen-button:hover {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.2);
}

#full-screen-button>div {
    height: 100%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

#full-screen-button>div>div {
    width: 50%;
    height: 50%;
}

#full-screen-button>div>div:nth-child(1) {
    padding: 0 3px 3px 0;
}

#full-screen-button>div>div:nth-child(1)>div {
    border-right-width: 0;
    border-bottom-width: 0;
}

#full-screen-button>div>div:nth-child(2) {
    padding: 0 0 3px 3px;
}

#full-screen-button>div>div:nth-child(2)>div {
    border-left-width: 0;
    border-bottom-width: 0;
}

#full-screen-button>div>div:nth-child(3) {
    padding: 3px 3px 0 0;
}

#full-screen-button>div>div:nth-child(3)>div {
    border-right-width: 0;
    border-top-width: 0;
}

#full-screen-button>div>div:nth-child(4) {
    padding: 3px 0 0 3px;
}

#full-screen-button>div>div:nth-child(4)>div {
    border-left-width: 0;
    border-top-width: 0;
}

#full-screen-button>div>div>div {
    height: 100%;
    width: 100%;
    border: 2px solid #fff;
}

#full-screen-button.fullscreen>div>div:nth-child(2)>div,
#full-screen-button.fullscreen>div>div:nth-child(3)>div{
    transform:rotate3d(1,1,0,180deg)
}

#full-screen-button.fullscreen>div>div:nth-child(1)>div,
#full-screen-button.fullscreen>div>div:nth-child(4)>div{
    transform:rotate3d(-1,1,0,180deg)
}

#content {
    margin: 20px 0;
    text-align: center;
    font-size: 30px;
}

#link:hover,
#hitokoto a:hover {
    opacity: 0.8;
}

#processbar {
    height: 5px;
    background-color: #fff;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 0;
    opacity: 0.3;
}

@media screen and (max-width:810px) {
    #main {
        padding: 30px;
    }

    #content {
        font-size: 1.5em;
    }

    #action {
        font-size: 15px;
    }
}

@media screen and (max-width:550px) {
    #main {
        padding: 20px;
    }
}